To Recreate a Replica for a Lost Laptop
Step 1: Unsubscribe the user
- Remove the snapshot references corresponding to the laptop from the Master database.
- At the command prompt, run the UNSUBSCRIBEUSER.BAT utility, from ..\Program Files\Bentley\UtilitiesDesigner\, with the following parameters. Use parameters in the order specified and use a space to separate each value.
-
Cmd:\> UnSubscribeUser <Server Name> <Master DB Instance> <Master User> <Master Password> <Repository DB Instance> <Repository User> <Repository Password> <Unique Name> <Workflow Manager Username>
Where:
- Host name of the Master Oracle Server database
- Oracle SID of the Master database
- Username for connecting to Master database
- Password for the Master User
- Oracle SID of the Repository database (Usually the same as Master database)
- Username for Repository user (Usually MOBILEADMIN)
- Password for the Repository User
- A name for the Workflow Manager Replication Publication
- Workflow Manager user name of the user who is going to the use the replication database.
For Example: Cmd:\> UnSubscribeUser geobox elecxm chdata chadmin elecxm mobileadmin chadmin ED administrator
Step 2: Subscribe the users to the Replication Publication
- At the command prompt, run the SUBSCRIBEUSER.BAT utility, from ..\Program Files\Bentley\UtilitiesDesigner\bin, with the following parameters. Use parameters in the order specified and use a space to separate each value.
-
Cmd:\> SubscribeUser <Server Name> <Master DB Instance> <Master User> <Master Password> <Repository DB Instance> <Repository User> <Repository Password> <Unique Name (ED)> <EDUsername>
Where:
- Host name of the Master Oracle Server database
- Oracle SID of the Master database
- Username for connecting to Master database
- Password for the Master User
- Oracle SID of the Repository database (Usually the same as Master database)
- Username for Repository user (Usually MOBILEADMIN)
- Password for the Repository User
- A name for the ED Replication Publication
- ED user name of the user who is going to the use the replication database.
Step 4: Create Laptop Replication Files
- At the command prompt, run the IdGen.exe utility, from ..\Program Files \Bentley\ExpertDesigner\bin, with the following parameters to initialize the next valid sequence numbers. Use parameters in the order specified and use a space to separate each value.
-
Cmd:\> IdGen <ED User>
Workflow Manager User name of the user who is going to the use the replication database.
Edit the file POLITE.INI like this: [All Databases] MaxSharedMemSize=256 [SYNC] AUTO_COMMIT_COUNT=50
- At the command prompt, run the REPLICA.BAT utility, from ..\Program Files\Bentley\UtilitiesDesigner, with the following parameters. Use parameters in the order specified and use a space to separate each value.
-
Cmd:\> Replica <OracleLite_Home> < Workflow Manager Username> < Workflow Manager Username password in Mobile Server> <Mobile Server name> <proxy server> <proxy port>
Where:
- Directory where you have the Oracle 10g Lite installed
- Workflow Manager User name of the user who is going to the use the replication database.
- Password for the above user on the Mobile Server
- Mobile Server machine name
- [Optional] Proxy Server name
- [Optional] Proxy Port number
For Example: Cmd:\> Replica C:\Oracle\OraLite10g administrator chadmin MACHINE1 [PROXY1] [8080]
The REPLICA batch file performs several steps including the creation of the snapshot where each table in the Master database is replicated, and creation of the indexes and views. After each step, the program will pause to give the System Administrator the opportunity to review any errors that may have occurred, the user can press <Enter> to continue execution or <Ctrl + C> to exit the batch program. One of the steps in the program is to display an interactive Windows program providing the capability to generate a sequence number. After the sequence numbers are generated, the sequences will be automatically created in the replica database.
-
In the Sequence Generator Window:
- Select the User's name used as a parameter to run REPLICA.BAT
- Uncheck the "New Install" check box (i.e., it must not be checked)
- Select Next
- Select Finish to generate the sequence
- Manually create the CHDATALITE DSN. (Refer to instructions in 1st part of Section 3.0 Step 4)*
- Exit the Application when it has finished generating the sequence
- After the sequences are created, the batch program will continue to create views, indexes, etc.